import HouseView from "./HouseView";

const {ccclass, property} = cc._decorator;

@ccclass
export default class AddHouseView extends cc.Component {

    @property(cc.Prefab)
    house: cc.Prefab = null;

    @property
    offsetX: number = 0

    @property
    offsetY: number = 0;

    @property
    scale: number = 1;


    start() {
        let node = cc.instantiate(this.house)
        node.scale = this.scale;
        node.x = this.offsetX;
        node.y = this.offsetY;
        this.node.addChild(node)
        let comp :HouseView = node.getComponent(HouseView)
    }

    // update (dt) {}
}
